package Common 
{
	import fl.containers.ScrollPane;
	import flash.display.Sprite;
	
	/**
	 * ...
	 * @author Serg de Adelantado
	 */
	public class ViewerSubstrate extends Sprite 
	{
		private const COLOR:uint = 0xCCCCCC;
		
		public function ViewerSubstrate(AScroller:ScrollPane)
		{
			AScroller.parent.addChild(this);
			AScroller.parent.swapChildren(this, AScroller);
		}
		
		public function SetSize(AWidth:int, AHeight:int):void
		{
			graphics.clear();
			graphics.beginFill(COLOR);
			graphics.drawRect(0, 0, AWidth, AHeight);
			graphics.endFill();
		}
	}
}